package top.byteio.common.core.enums.result;

/**
 * 常用返回码枚举
 *
 * @author lerry
 * @since 2023/6/21 13:20
 */

public enum ResultCode implements ICode {

    VALIDATE_FAILED(1405, "参数检验失败"),
    MULTIPLE_TOKENS(1402, "多个不记名令牌"),
    REPEATED(1000, "不允许重复提交");
    private final int code;
    private final String message;

    ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
